import { createApp } from 'vue'

import App from './App.vue'
import router from '@/lite/router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import lite from '@/lite/index.js';
import './style.css'
import '@/lite/styles/public.css'
import 'element-plus/theme-chalk/dark/css-vars.css'



const app = createApp(App);
// liteadmin组件
await app.use(lite)
//整个应用支持路由。
app.use(router)
// ui
app.config.globalProperties.$icons = []
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.config.globalProperties.$icons.push(key)
    app.component(key, component)
  }
app.use(ElementPlus)






app.mount('#app')

